package org.epam.szhuk.greenway.util;

import java.util.HashMap;

import org.epam.szhuk.greenway.asynctask.WebServiceTask;

import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;


public final class NetworkSender {
	 private static final String SERVICE_URL = "http://78.27.253.164:8080/GreenWay/rest/transferPolutionObject";//"http://78.27.253.164:8080/RestWebServiceDemo/rest/transferPolutionObject";
	 private Context context;
	 private static final String TAG = "NetworkSender";
	    
     public static void sendToServer(Context context, HashMap<String,String> values){
    	 
	       WebServiceTask wst = new WebServiceTask(WebServiceTask.POST_TASK, context, "Posting data...");

	       wst.addNameValuePair("ID", "1");
	       wst.addNameValuePair("IDFILE", "AA1999");
	       wst.addNameValuePair("IDUSER", "USER_ID_HERE");
	       wst.addNameValuePair("A", "2");
	       wst.addNameValuePair("B", "3");
	       wst.addNameValuePair("C", "4");
	       wst.addNameValuePair("D", "5");
	       wst.addNameValuePair("E", "6");

	       wst.execute(new String[] { SERVICE_URL });
	   }
}
